<!-- This file is just a basic wrapper for your bridged, Ajax/Flex, application.

	 This file will NOT be overwritten once it has been generated, therefor it
	 is perfectly safe to customize it to fit your needs.
	 
	 If you need to have this file re-generated, please delete it. -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<title>Test page for the riverChar class</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<script type="text/javascript" src="lib/FABridge.js"></script>
	<script type="text/javascript" src="riverChar.js"></script>
    <script type="text/javascript">
	    //flash加载完毕调用函数
    	function InitRiverChar(){
			
			riverChar.initWater(0,100);
			riverChar.DrawWater(50);
			riverChar.DrawLine(50,'实时水位50m','000000','false');
			riverChar.DrawLine(60,'保证水位60m','ff0000','false');
		}
    </script>
</head>

<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="riverCharTest" width="700" height="600"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
	<param name="movie" value="riverChar.swf" />
	<param name="flashvars" value="bridgeName=b_riverChar"/>
	<param name="quality" value="high" />
	<param name="allowScriptAccess" value="sameDomain" />
	<embed src="riverChar.swf" quality="high"
		width="700" height="600" name="riverCharTest" 
		align="middle"
		play="true"
		loop="false"
		quality="high"
		allowScriptAccess="sameDomain"
		type="application/x-shockwave-flash"
		pluginspage="http://www.adobe.com/go/getflashplayer" 
		flashvars="bridgeName=b_riverChar">
	</embed>
</object>

<h2>河道图表组件调用说明</h2>
<table border="1" cellspacing="0" cellpadding="0" width="643">
<tr>
    <td width="198">flash加载完毕会执行页面中的InitRiverChar方法，所以在页面中必须有该方法的定义，所有的请求数据的操作和调用的操作都在该方法体内</td>
    <td width="444" valign="top"><p> &lt;script type=&quot;text/javascript&quot;&gt;<br />
function InitRiverChar(){<br />
<br />
riverChar.initWater(0,100);<br />
riverChar.DrawWater(50);<br />
riverChar.DrawLine(50,'实时水位50m','000000','false');<br />
riverChar.DrawLine(60,'保证水位60m','ff0000','false');<br />
}<br />
&lt;/script&gt;</p></td>
  </tr>
  <tr>
    <td width="198"><a href="javascript:riverChar.initWater(0,100)">1.第一步调用initWater传入河道底高程和顶高程</a>.</p></td>
    <td width="444" valign="top">**/<br />
      @param1: double 底高程 <br />
      @param2: double 顶高程 <br />
      **/<br />
      riverChar.initWater(param1,param2)</p></td>
  </tr>
  <tr>
    <td width="198"><a href="javascript:riverChar.DrawWater(50)">2.第二步：画水体DrawWater传入实时河道水情数据</a>.
       
    </td>
    <td width="444" valign="top"><p>**/<br />
      @param1:double实时水位高度 <br />
      **/<br />
      riverChar.DrawWater(param1)</p></td>
  </tr>
  <tr>
    <td width="198"><p align="center"><a href="javascript:riverChar.DrawLine(80,'警戒水位80m','ff0000','false')">3.第三步画特征值DrawLine，例如：保证水位，警戒水位等等</a>.</p></td>
    <td width="444" valign="top"><p>**/<br />
      @param1: double 水位值 <br />
      @param2: String 标注的名称例如&ldquo;保证水位&rdquo; <br />
      @param3: String 线条颜色码例如红色是&rsquo;ff0000&rsquo;<br />
      @param4: String 默认为&rdquo;false&rdquo;<br />
      **/<br />
      riverChar.DrawLine(80,'警戒水位80m','ff0000','false')</p></td>
  </tr>
  <tr>
    <td width="198" valign="top"><p>&nbsp;</p></td>
    <td width="444" valign="top"><p>&nbsp;</p></td>
  </tr>
</table>
</body>

</html>